package com.itcast.googleplay.holder;

import android.view.View;

public abstract class BaseHolder<T>{
	private View convertView;
	private T data;
	public BaseHolder(){
		convertView = initView();
		convertView.setTag(this);
	}
	public void setData(T data){
		this.data = data;
		initData();
	}
	
	public T getData(){
		return data;
	}
	public View getConvertView(){
		return convertView;
	}
	public abstract void initData() ;
	public abstract View initView();
}
